import axios from "axios"
var baseURL = "http://localhost:3000/"
function http({
    url
}){
    return new Promise((resolve,reject)=>{
        axios({
            method:'get',
            baseURL,
            url,
        }).then(res => {
            resolve(res.data)
        })
        .catch(err => {
            reject(err);
        })
    })
}
export default { http }
